package com.wpf.hf.service.impl;

import com.wpf.hf.dao.OrderMapper;
import com.wpf.hf.pojo.Order;
import com.wpf.hf.service.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import tk.mybatis.mapper.entity.Example;

import java.util.List;

@Service
public class OrderServiceImpl implements OrderService {

    @Autowired
    private OrderMapper orderMapper;
    /**
     * @param username
     * @return
     */
    @Override
    public List<Order> findOrderByUserId(String username) {

        List<Order> orderList = orderMapper.findOrderList(username);
        return orderList;
    }
}
